QueryDefinition.CreateQuery Method

Returns a new LearningStoreQuery constructed from this query definition.

Parent Type: QueryDefinition

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public LearningStoreQuery CreateQuery (
LearningStore learningStore,
bool countOnly,
MacroResolver macroResolver,
out int[,] columnMap

)

Parameters

learningStore

The LearningStore that will be queried.

countOnly

If true, the query will include minimal output columns, since it will be assumed that the purpose of executing the query is purely to count the rows. If false, all columns specified by the query definition are included in the query.

macroResolver

A delegate for resolving macros in the query. May be null.

columnMap

Where to store a column map: element i,j is the index of the column in the query results that's mapped from Columns[i] and one of ColumnDefinition.ViewColumnName (if j is 0), ColumnDefinition.ViewColumnName2 (if j is 1), or ColumnDefinition.ViewColumnName3 (if j is 2). If countOnly is true, null is stored in columnMap